package org.abacus.platform.grid.impl;

import junit.framework.TestCase;

public class GridTest extends TestCase {

	public void ValueMapImpl() {
		GridImpl g = new GridImpl();
		GridDataImpl gd = null;
		ValueMapImpl v = null;

		g.setGridDatas(new GridDataImpl[20]);
		for (int i = 0; i < 20; i++) {
			gd = new GridDataImpl();
			gd.setValueMaps(new ValueMapImpl[10]);
			for (int j = 0; j < 10; j++) {
				v = new ValueMapImpl();
				v.setKey("c" + j);
				v.setValue(i + "" + j);
				gd.setValueMap(j, v);
			}
			g.setGridData(i, gd);
		}

		GridColumnImpl gc = null;

		g.setGridColumns(new GridColumnImpl[20]);

		for (int j = 0; j < 10; j++) {
			gc = new GridColumnImpl();
			gc.setName("c" + j);
			gc.setLable("列" + j);
			g.setGridData(j, gd);
		}
		g.setCheck(true);
		System.out.print(g);
	}
}
